package com.hunter2.standard.entity;

import java.util.Date;

public class CvExpectation {
	private Integer id;

	private Date createTime;

	private Date updateTime;

	private Integer candidateid;

	private Integer flag;

	private String expectationIndustryId;

	private String expectationFunctionId;

	private String expectationCityId;

	private Integer expectationSalary;

	private Integer presentSalary;

	private String expectationCompany;

	private String expectationTitle;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getCandidateid() {
		return candidateid;
	}

	public void setCandidateid(Integer candidateid) {
		this.candidateid = candidateid;
	}

	public Integer getFlag() {
		return flag;
	}

	public void setFlag(Integer flag) {
		this.flag = flag;
	}

	public String getExpectationIndustryId() {
		return expectationIndustryId;
	}

	public void setExpectationIndustryId(String expectationIndustryId) {
		this.expectationIndustryId = expectationIndustryId == null ? null : expectationIndustryId.trim();
	}

	public String getExpectationFunctionId() {
		return expectationFunctionId;
	}

	public void setExpectationFunctionId(String expectationFunctionId) {
		this.expectationFunctionId = expectationFunctionId == null ? null : expectationFunctionId.trim();
	}

	public String getExpectationCityId() {
		return expectationCityId;
	}

	public void setExpectationCityId(String expectationCityId) {
		this.expectationCityId = expectationCityId == null ? null : expectationCityId.trim();
	}

	public Integer getExpectationSalary() {
		return expectationSalary;
	}

	public void setExpectationSalary(Integer expectationSalary) {
		this.expectationSalary = expectationSalary;
	}

	public Integer getPresentSalary() {
		return presentSalary;
	}

	public void setPresentSalary(Integer presentSalary) {
		this.presentSalary = presentSalary;
	}

	public String getExpectationCompany() {
		return expectationCompany;
	}

	public void setExpectationCompany(String expectationCompany) {
		this.expectationCompany = expectationCompany == null ? null : expectationCompany.trim();
	}

	public String getExpectationTitle() {
		return expectationTitle;
	}

	public void setExpectationTitle(String expectationTitle) {
		this.expectationTitle = expectationTitle == null ? null : expectationTitle.trim();
	}

	public String write2Line(CvExpectation exp) {

		// 12
		String line = "\\N" + "\t" + "\\N" + "\t" + "\\N" + "\t" + exp.getCandidateid() + "\t" + "1" + "\t" + exp.getExpectationIndustryId()   //6
				+ "\t" + "\\N" + "\t" + exp.getExpectationCityId() + "\t" + exp.getExpectationSalary() + "\t" + exp.getPresentSalary() + "\t"   //4
				+ exp.getExpectationCompany() + "\t" + exp.getExpectationTitle() + "\t";   //2a
		
		return line;
	}

}